const TOKEN_KEY="token";
const settoken=(token)=>localStorage.setItem(TOKEN_KEY,token)
const gettoken=()=>localStorage.getItem(TOKEN_KEY)
const removetoken=()=>localStorage.removeItem(TOKEN_KEY)
const isAuth=()=>!!gettoken()
export {settoken,gettoken,removetoken,isAuth}